package com.sunsl.jobschedule.service.impl;

import com.sunsl.jobschedule.dao.KbConsumptionRecordMapper;
import com.sunsl.jobschedule.entity.KbConsumptionRecord;
import com.sunsl.jobschedule.service.KbConsumptionRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("kbConsumptionRecordService")
//@Transactional(rollbackFor = Exception.class)
public class KbConsumptionRecordServiceImpl implements KbConsumptionRecordService {
    @Autowired
    private KbConsumptionRecordMapper consumptionRecordMapper;

    @Override
    public List<KbConsumptionRecord> getAbnormalConsumptionRecordList() {
        return consumptionRecordMapper.getAbnormalConsumptionRecordList();
    }

    @Override
    public int updateConsumpResultByPrimaryKey(Map map) {
        return consumptionRecordMapper.updateConsumpResultByPrimaryKey(map);
    }

}
